package com.spelet;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;

public abstract class StaticVariables {
	
	public static float percentWidth;
	public static float percentHeight;
	public static float barSize;
	public static float viewbarSize;
	public static float buttonSize;
	public static float edgeDistance;
	public static float buttonOffset;
	
	public static Vector2 moveDirection;
	
	// BlockBrush
	public static final int amountOfBlockTypes = 12;
	public static final int boulderVal = 0;
	public static final int moveVal = 1;
	public static final int wallVal = 2;
	public static final int redkeyVal = 3;
	public static final int reddoorVal = 4;
	public static final int eraserVal = 5;
	public static final int goalVal = 6;
	public static final int bluekeyVal = 7;
	public static final int bluedoorVal = 8;
	public static final int yellowkeyVal = 9;
	public static final int yellowdoorVal = 10;
	public static final int mergeVal = 11;
	// TerrainBrush
	public static final int amountOfTerrainTypes = 7;
	public static final int grassVal = 0;
	public static final int holeVal = 1;
	public static final int dirtVal = 2;
	public static final int yellowbuttonVal = 3;
	public static final int yellowpillarVal = 4;
	public static final int bluebuttonVal = 5;
	public static final int bluepillarVal = 6;
	
	public static void initiate() {
		percentWidth = ((float)Gdx.graphics.getWidth())/100f;
		percentHeight = ((float)Gdx.graphics.getHeight())/100f;
		moveDirection = new Vector2();
		barSize = percentWidth*12f;
		viewbarSize = percentWidth*20;
		buttonSize = percentWidth*8f;
		edgeDistance = (barSize-buttonSize)/2f;
		buttonOffset = (percentWidth*100f-edgeDistance*2f-buttonSize-6f)/6f;
	}
}